<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../_frag/include.inc.jsp"%>
<div class="pageContent">
    <form method="post" action="${pageContext.request.contextPath}/admin/platform/save?navTabId=userLiNav&callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
	<input type="hidden" name="id" value="${platform.id}"/>
	<div class="pageFormContent" layoutH="57">
        <p>
            <label>平台名称: </label>
            <input type="text" name="name" value="${platform.name}" class="required" minlength="1" maxlength="100"/>
        </p>
        <p>
            <label>公司名称: </label>
            <input type="text" name="company" value="${platform.company}" class="required" minlength="1" maxlength="100"/>
        </p>
        <p>
            <label>公司地址: </label>
            <input type="text" name="address" value="${platform.address}" class="required" maxlength="200"/>
        </p>
        <p>
            <label>网址: </label>
            <input type="text" name="site" value="${platform.site}" class="required url" maxlength="100"/>
        </p>
        <p>
            <label>LOGO: </label>
            <input type="text" name="logo" value="${platform.logo}" class="required url" maxlength="100"/>
        </p>
        <p>
            <label>星级: </label>
            <input type="text" name="star" value="${platform.star}" class="required integer" maxlength="1"/>
        </p>
        <p>
            <label>法人: </label>
            <input type="text" name="legalMan" value="${platform.legalMan}" class="required" maxlength="30"/>
        </p>
        <p>
            <label>联系电话: </label>
            <input type="text" name="telephone" value="${platform.telephone}" class="required phone" maxlength="30"/>
        </p>
        <p>
            <label>年化收益率: </label>
            <input type="text" name="annualEarnings" value="${platform.annualEarnings}" class="required" maxlength="30"/>
        </p>
        <p>
            <label>平均收益率: </label>
            <input type="text" name="averageEarnings" value="${platform.averageEarnings}" class="required number" maxlength="30"/>%
        </p>
        <p>
            <label>注册时间: </label>
            <input type="text" name="registerDate" value="<fmt:formatDate value="${platform.registerDate}" pattern="yyyy-MM-dd"/>" class="date" readonly="readonly"/>
            <a href="javascript:;" class="inputDateButton">选择</a>
        </p>
        <p>
            <label>400电话: </label>
            <input type="text" name="phone400" value="${platform.phone400}" class="required" maxlength="30"/>
        </p>
        <p>
            <label>区域: </label>
            <input type="text" name="area" value="${platform.area}" class="required" maxlength="30"/>
        </p>
        <p>
            <label>注册资金: </label>
            <input type="text" name="registeredCapital" value="${platform.registeredCapital}" class="required" maxlength="30"/>
        </p>
        <p>
            <label>传真: </label>
            <input type="text" name="faxNumber" value="${platform.faxNumber}" class="required phone" maxlength="30"/>
        </p>
        <p>
            <label>上线时间: </label>
            <input type="text" name="onlineDate" value="<fmt:formatDate value="${platform.onlineDate}" pattern="yyyy-MM-dd"/>" class="date" readonly="readonly"/>
            <a href="javascript:;" class="inputDateButton">选择</a>
        </p>
        <p>
            <label>ICP号: </label>
            <input type="text" name="icpCode" value="${platform.icpCode}" class="required" maxlength="30"/>
        </p>
        <p>
            <label>邮箱地址: </label>
            <input type="text" name="email" value="${platform.email}" class="required email" maxlength="100"/>
        </p>
        <p>
            <label>状态: </label>
            <select name="status">
                <option value="0" <c:if test="${platform.status == 0}">selected</c:if>>下架</option>
                <option value="1" <c:if test="${platform.status == 1}">selected</c:if>>上架</option>
            </select>
        </p>
	</div>

	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
		</ul>
	</div>
</form>
</div>